/*
 * @Description: 邮件API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-03-13 14:35:39
 */
import http from '@/utils/http/axios'

export function getSSLList(params) {
  return http.request({
    url: '/monitor/ssl_list',
    method: 'GET',
    params
  })
}
export function getWebsiteList(params) {
  return http.request({
    url: '/monitor/site_list',
    method: 'GET',
    params
  })
}
export function getLogList(params) {
  return http.request({
    url: '/monitor/send_log_list',
    method: 'GET',
    params
  })
}
export function getSendSetting(params) {
  return http.request({
    url: '/monitor/send_setting',
    method: 'GET',
    params
  })
}
export function editSendSetting(params) {
  return http.request(
    {
      url: '/monitor/send_setting',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delServerItem(params) {
  return http.request(
    {
      url: '/monitor/del_ssl',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delServerBatch(params) {
  return http.request(
    {
      url: '/monitor/del_ssl_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delSiteServerBatch(params) {
  return http.request(
    {
      url: '/monitor/del_site_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delWebsiteItem(params) {
  return http.request(
    {
      url: '/monitor/del_site',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editSslInfo(params) {
  return http.request(
    {
      url: '/monitor/edit_ssl_info',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editWebsiteInfo(params) {
  return http.request(
    {
      url: '/monitor/edit_site_info',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getLog(params) {
  return http.request({
    url: '/monitor/ssl_monitor_log',
    method: 'GET',
    params
  })
}
export function getWebsiteLog(params) {
  return http.request({
    url: '/monitor/website_monitor_log',
    method: 'GET',
    params
  })
}
